<?php /*a:1:{s:60:"/www/wwwroot/www.moxiongdi.com/app/admin/view/ad/update.html";i:1698050634;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title><?php echo htmlentities($pagetitle); ?></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/admin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/admin/style/global.css" media="all">
</head>
<body>

<form action="<?php echo url(); ?>" method="post" class="form-horizontal" onsubmit="return save_form2(this)">
    <input type="hidden" name="pubid" value="<?php echo htmlentities($pubid); ?>">
    <input type="hidden" name="id" value="<?php echo htmlentities($r['id']); ?>">
    <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
        <div class="layui-form-item">
            <label class="layui-form-label">分类</label>
            <div class="layui-input-inline">
                <select name="catid" class="layui-input">
                    <?php foreach($adCat as $v): ?>
                    <option value="<?php echo htmlentities($v['catid']); ?>" <?=$v['catid']==$r['catid']?'selected':''?>><?php echo htmlentities($v['name']); ?></option>
                    <?php endforeach; ?>
                </select>
            </div>
        </div>		
        <div class="layui-form-item">
            <label class="layui-form-label">标题</label>
            <div class="layui-input-inline">
                <input type="text" value="<?php echo htmlentities($r['name']); ?>" lay-verify="required" name="name" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">缩略图<span></span></label>
            <div class="layui-input-inline file-upload">
                <input type="text" name="thumb" id="info_thumb" value="<?php echo htmlentities($r['thumb']); ?>" autocomplete="off" class="layui-input"/>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn" onclick="previewImg('info_thumb')"><i class="layui-icon">&#xe64a;</i>预览</button>
                    <button type="button" class="layui-btn fastupimg" data-input_id="info_thumb" data-listtype="img" id="info_thumb_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
                    <button type="button" class="layui-btn" onClick="selectfile('info_thumb','','img')"><i class="layui-icon">&#xe67c;</i>浏览</button>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">描述</label>
            <div class="layui-input-inline">
                <input type="text" value="<?php echo htmlentities($r['intro']); ?>" lay-verify="required" name="intro" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">链接</label>
            <div class="layui-input-inline">
                <input type="text" value="<?php echo htmlentities($r['link']); ?>" lay-verify="required" name="link" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" type="submit" lay-filter="component-form-element">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary close">关闭</button>
            </div>
        </div>
    </div>
  <!--文件上传ajax调用的接口地址-->
  <script>
    var upload_index="<?php echo url('file/index'); ?>";
    var upload_add="<?php echo url('file/add'); ?>";
    var upload_config="<?php echo url('file/uploadConfig'); ?>";
  </script>
    <script src="/static/admin/layui/layui.js"></script>
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/js/globals.js"></script>
    <!--文件上传 start-->
    <script type="text/javascript" src="/static/webuploader/kinderfile.js"></script>
    <script type="text/javascript" src="/static/webuploader/Sortable.js"></script>
    <script type="text/javascript" src="/static/webuploader/morepic.js"></script>


    <!--以下是针对 快速上传单个文件插件-->
    <link rel="stylesheet" type="text/css" href="/static/webuploader/style/webuploader.css" />
    <link rel="stylesheet" type="text/css" href="/static/webuploader/style/style.css" />
    <script type="text/javascript" src="/static/webuploader/webuploader.js"></script>
    <script type="text/javascript" src="/static/webuploader/fastupimg.js"></script>
    <!--文件上传 end-->
    <!--文件上传的预览功能中中也需要用到我 fancybox plus start-->
    <link rel="stylesheet" type="text/css" href="/static/fancybox3/jquery.fancybox.min.css" media="screen" />
  
    <script type="text/javascript" src="/static/fancybox3/jquery.fancybox.min.js"></script>
    <!--文件上传的预览功能中中也需要用到我 fancybox plus end-->
    <script>
        layui.config({
            base: '/static/admin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'form'], function(){
            var $ = layui.$
                ,form = layui.form;
        })
    </script>
</body>
</html>